import java.util.*;

public class Main {
    public static void main(String[] args) {
        List<Person> list = List.of(
                new Person("Xiao", "Ming", 18),
                new Person("Xiao", "Hong", 25),
                new Person("Bob", "Smith", 20)
        );
        boolean exist = list.contains(new Person("Bob", "Smith", 20));
        System.out.println(exist ? "测试成功!" : "测试失败!");
    }

    static int findMissingNumber(int start, int end, List<Integer> list) {
        list.sort(Integer::compare);
        System.out.println(list.toString());
        for (Integer i : list) {
            if (i==start){
                start++;
            }else{
                return start;
            }
        }
        return 0;
    }
}
